﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BTCairo
{
    public class Shadow : Effect
    {
        public override void DoEffect(Shape shape)
        {
            shapeEffect = shape.CloneShape(10, 10);
            CommonGraphics g = shapeEffect.myCommonGraphic;
            InfoGraphic info = g.MyInfoGraphic;
            int l = 80;
            info.lineRed = l;
            info.lineGreen = l;
            info.lineBlue = l;
            info.fillRed = l;
            info.fillGreen = l;
            info.fillBlue = l;
            //info.fill = true;
            g.MyInfoGraphic = info;
            shapeEffect.myCommonGraphic = g;
            shapeEffect.DrawEffect();
        }

        public override void ParseXmlElement(System.Xml.XmlDocument doc, System.Xml.XmlElement root)
        {
            shapeEffect.ParseXmlElement(doc, root);
        }
    }
}
